home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
oath.lha
/
oath
/
test
/
ms2a.cc
< prev
next >
Wrap
C/C++ Source or Header
|
1991-08-29
|
899b
|
32 lines
#include "oath/minString.h"
#include <fstream.h>
/////////////////////////////////////////////////////////////////////////////
// Test of minStrings
main()
{// Create some Characters //////////
characterA R = characterA::make('r');
characterA S = characterA::make('s');
characterA T = characterA::make('t');
characterA L = characterA::make('l');
characterA N = characterA::make('n');
characterA E = characterA::make('e');
characterA A = characterA::make('a');
// Create some Strings //////////
stringA Star = minStringA::make() << T << A << R;
cout << Star.am() << "\t(" << Star.hash() << ")" << endl;
stringA Sstare = minStringA::make() << S << Star << E;
cout << Sstare.am() << "\t(" << Sstare.hash() << ")" << endl;
// Save the Strings //////////
ofstream File ("ms2.obj");
Star.export(File);
Sstare.export(File);
}